unix: fix `Eof on empty TCP.write
Merge pull request #76 from pqwy/write-errors

unix: fix `Eof on empty TCP.write