Implement write.

One can now
9open #Z/regressctl 0
9write 0 v 1 0

and watch it explode ... but a fix will happen.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>