Fix GetOverlappedResult function call in write_nonblock