I don't have the answer but I think the requirement is very clear.
- Sales Orders which are blocked because of credit check shouldn't decrease the amount of credit value available.
That way the 8000$ sales order would go through, because the 10000 $ were available. As the system is now, 0 $ is available because of the 11000$ blocked order.