A Write-Based Solver for SAT Modulo the Theory of Arrays