Would "Jeg hadde ikke noen å elske" work as well?
Yes, I think it would.
'Jeg hadde ingen for å elske.'
How will this differ in meaning to the sentence without 'for'?
That would mean "I had nobody in order to love", which is nonsensical.