new write method uses putc to place chars