Added function to write a single byte