Got rid of some code from writefd_unbuffered() that was only needed