just use #write

not adding another method call. Since it's a private method, not giving any
deprecation warning.