this is the only writing function that doesn't check its argument and I just spent half a day looking for a bug of mine that I would have found immediately otherwise :-(.
I think that two more functions write_ui8 and write_i8 would be useful, with a big warning about unchecked argument of write_byte.
Tiphaine Turpin