Your understanding of banks taking in deposits then lending them out hasn't been true for decades. A bank with no deposits can make loans just fine. They can just borrow at a lower rate than they loan if they actually need to hand out cash.
Your example doesn't make much since because any bank has many good loans and a capital reserve to deal with the few bad loans.