Blender Game animation recording: specific recording
You could try setting the record_animation property to False for the ball object:

cont = GameLogic.getCurrentController()
cont.owner.record_animation = False