Create a file before check if it can be written