If the reference is `WRITE` reference (`WRITE` or `READWRITE`), this reference tries to write `writeExpr` to the varaible.