And by the way just in case it's not clear, if you analogWrite to a non-PWM pin, which only knows about always off or always on, with no rapid switching, then if you send a value under 128 it takes that as 100% off, and above it's 100% on, which is what was happening to you.
More here.