Write-in candidate ends mayoral campaign