Writers should (and usually do) express themselves honestly. An exception may exist for those who write commercials or political speeches, in which case truth is beside the point.
Of course, this honesty is defined by the writer's own convictions, experience and knowledge; absolute truth is beyond our reach. The honesty of a writer's essay, poem or story reflects their personal view of life; any effort to evade or disguise that connection is generally apparent to the reader.
Writing exposes the writer. It is a vehicle of creative expression that flows from the heart and the mind. To be effective, both the writer and the reader must trust the verity of its message.