Be clear about whether write() of pwrite() failed