-fixed bug with user input to print file

Note: rewriteInode() function was not working, so I used writeInode()
I don't know if this will cause issues though in certain cases, but
it's working as far as I know