The barn where he wrote his songs, including “Time in a Bottle,” “Bad, Bad Leroy Brown” and “You Don’t Mess Around with Jim,” has been marked