catch user error with write() after WANT_WRITE with short size