A fertile creative force, he wrote fiction and musicals but is best known for a breakthrough movie that heralded the genre known as blaxploitation.