1) He has professional writers to help him so not all of the credit is his 2) u don't have to be in love to write about love, u just have to be passionate 3) So your conclusion is...
Yes, he doesn't have a girlfriend but he has had girlfriends and knows what it feels like so yes he could write songs without having a girlfriend.