Use writeSemicolon instead of writing directly

writeSemicolon contains proper values for linebreaksAfter (blank lines),
etc.