The mass is accelerating upwards with net acceleration, a. Here, the tension upwards in the string is doing two jobs. It is fully balancing the weight force downwards and supplying the required force upwards to accelerate the mass with the net acceleration of a...