Fixed and tested the write file method for the shell command "create".