The shot is fair because black was nominated as a free ball and it was struck first. It is legal for both the free ball and the ball on to be potted at the same time.