add write/1 built-in predicate - resolves #63