Create write.h

Contains the write() function to write data into a file