Correctly evaluates expressions in the Write node