Geometrical effects on the Hall resistance in ballistic microstructures