Ball screw with flange nut