fixed wrong case for writeFileAtPath:content:error: