If the radial distance of the ball to the post is reduced, and it does since eventually it hits the post, that means a translation exists in radial direction.
In case (a), the tension of the string T is also in the radial direction, so this force is performing some work on the ball, because...