create write directory if it doesn't exist (didn't work before)