Inline _write method