open and write

just basics works, uncomplete, fat is not updated and has one
unnecesary entry