handle EAGAIN on write