A Cost-Effective and QoS-Aware User Allocation Approach for Edge Computing Enabled IoT