There is access back to Mudschool from Udgaard, it just isn't right next to the temple as it is in most towns. Check around the square, there should be an exit to get to the Academy from there.