added "incomplete write on datafd" error
send the status byte before sending data