win: minor error handle fix to uv_pipe_write_impl

This commit ensures a proper win32 error code is returned
from uv_pipe_write_impl in case of failure.