doc: reflect updates to write/writelines and friends