When assigning combat damage, you choose whether you want to assign all damage to blocking creatures, or if you want to assign all of it to the player or planeswalker this creature is attacking. You can’t split the damage assignment between them.
You can decide to assign damage to the defending player or planeswalker even if the blocking creature has protection from green or damage preventing effects on it.