Added write.c

Testing some stuff