Same i sent the wrong person to jail, now i have the quest again and i can actually complete it but the strange amulet in my inventory never get's identified even though when chatting to the court mage he tells me what it is! so im stuck with a bloody quest item in my inventory, i cant go back to whiterun without triggering the 'patrol the quarter' part of the quest as i dont want to finish this quest with a piece of junk in inventory, having to avoid Whiterun has basically [censored] me over on other quests that require me to go to that city.