An Adaptive Wireless Resource Allocation Scheme with QoS Guaranteed in Smart Grid