Code style: unify the use of WriteError
Rename WriteError to Fatalf for clarity