There are two other such pairs: to w(h)ile away the time, to w(h)et one's appetite. In both cases both spellings are eminently reasonable and justifiable. I recently tracked them both through the OED but forget what I found: I _think_ it was that we originally whiled and whetted. I would insist that now both are correct: this (w)rack is another good example of that.