Math Multiple Choice

In the incomplete table above, the sum of the three integers in each row, column, and diagonal is the same. If the numerical values in four of the blocks are as shown, what is the value of w ?
(A) -6
(B) -5
(C) 2
(D) 5
(E) 8
(from the October 17, 1998 test)