[printer] Add write method to print without a newline
#587
+135
−2
write method to print without a newline
#587