(write_serial): fix the variable holding the return value of write(2) which is a...