The block is Lorenz contracted (in the direction of the speed, 2 other measurements stay the same), so the volume decreases by a factor of gamma. The mass is increased by a factor of gamma. Which means that the density, whici is mass divided by volume, increases by a factor of gamma^2.