The first thing you want to do is remove any dirt from the surface of the floor. Pull on some rubber gloves and use a green scrubby and some mineral spirits to remove dirtand buff out surface problems.
Make sure you're working with the grain of the wood so you don't cause more damage than you're trying to fix.
Depending on the depth of the pitting this may actually solve the problem on it's own. If it doesn't, grab some superfine steel wool.
Again, working with the grain of the wood, buff the surface of the floor with the steel wool. This should even out the imperfections in the surface.
If you can still see the pitting, use a repair pen in the same color to blend the damage with the surrounding surface and follow that up with a buffing with a microfiber cloth.
Pitting problems solved! I'm Mrs. Fixit and it's just that simple!