Biggie only released two albums.
I heard he wrote "To Live and Die in LA" on the shitter. And another one in a limo on the way to the clubs. He'd spend his whole time in the studio. They call it the 7 day theory cuz he did the whole album in 7 days.
But when you're thinkin about Pac, you gotta remember he spent time in jail, weed free, for months, while Me Against the World went platinum. You know how much shit he probably wrote in jail? Right when he came out he just put together All Eyez on Me like it was nothing. With all due respect to 2Pac, there's no way he recorded an album like that really quick. He probably wrote about 10000 songs in jail, picked the best ones, and did All Eyez. Either way though - the jail time is the reason he has so many fuckin songs.