OK, I think I get it - I am the one who creates a transaction for me myself, and as soon as the block is confirmed, all the transactions in the block (including the one I created) are confirmed and are put into blockchain, yes?
Right, the first transaction in the block is called the coinbase transaction. Unlike all other transactions, it doesn't have any inputs.
The rule is that the sum of the outputs of a transaction cannot be greater than the sum of the inputs, but that rule doesn't apply to the coinbase transaction.
The sum of all transaction outputs in the block cannot be greater than the sum of all the inputs in the block plus the 25 BTC mint reward. This means that if a transaction doesn't transfer all of its input value to its outputs, then that can also be added to the coinbase transaction's payout, as a fee.
You don't have to take the mint reward or fees. A coinbase which pays zero would also be valid.