Since there was a foul observed..the ref was waiting to see if an advantage was going to develop. Since the attacking player didn't keep his feet, it is a direct free kick at the spot of the foul. On a further note, even if he had kept his feet and no advantage developed, the whistle should be blown to give the direct free kick.