Due to centripetal force the gravitational force between earth and sun attract each other so earth KEEP on TRACK and as the earth is moving (accelerated) so earth is moving and the gravitational force keep in track and so there is a balance between gravitational force and ACCELERATION of earth