Writes a string to the byte-stream.
fn write_str(&mut self, buf: &str) -> Result<usize, Errno>
The string to be written.
Returns the total number of bytes written.
This is a convenience method that simply calls write.
write