An Efficient Mechanism for Resource Allocation in Mobile Edge Computing