The Hall effect in ballistic junctions