The density would be the same for the whole bar as well as one half of the bar. Density is a identity I believe, by this I mean that it stays the same no matter how little or how much of the same substance you have. Since density = mass / volume, half the bar has half of the weight as well as half of the volume of the whole bar, making the density the same.
For example, a block weighs 10 grams and has a volume of 5 ml. the density would be d = 10/5 or, d = 2g/ml
Half of the block weighs 5 grams and has a volume of 2.5 ml. The density is d = 5/2.5, or, d = 2 g/ml.
See, although there are different amounts of the same substance, their density is the same.