tty: make tty_operations::write()'s count size_t