J^00 and J^gg are full matrices (with lots of zero rows). You can (with a little abuse of notation which I also indulged in further up) write the system your way, but that obscures the matrix system which you actually solve.

WRT the RHS you are correct, I will fix it.