Cannot upload programs thru one usb port but can through the other usb port

Check if the mac thinks there is something connected to the port. Will the port use when you plug other things in it?
what were you measuring with that sketch? Any chance you shorted a high voltage to the arduino's 5V pin?