Distributed Task Allocation in Social Networks