If they're not so famous, the have regular day jobs, or usually writing related side gigs, like writing articles for magazines (at least back when this made you a livable wage), teaching literature, and so on.
Others are independently wealthy, or have spouses who support them.
And some still live in poverty and make it day to day, with random gigs and the kindness of strangers.