Saving at any point in Ocarina of Time simply records your progress, and reloading returns you to a set checkpoint rather than erasing your work.
You may have noticed this in dungeons: if you save partway through, you'll restart at the dungeon's entrance, but everything you accomplished inside stays intact—unlocked doors, collected items, and your remaining hearts all carry over.
Boss fights work the same way. If you save during the Ganondorf battle, you'll be sent back to the start of Ganon's Tower, but all your progress up to entering the boss chamber is preserved.
So saving when you die won't cost you anything—it just marks where you'll resume.