Simplify puts vs. write

The puts method is a line-based helper and it makes sense to allow it to
format at the same time, while write is about writing data with more
arbitrary formatting. Let's remove some duplication.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>