Replace wrong or unnecessary usage of writef/ln with write/ln.