added code to allow for ext2 write functionality