A little question : does someone know if the I2C write function only in the outgoing buffer and then the data is send in background while the program runs, or does the program stop until the data is send ?
The Arduino is a single-threaded processor. There is no "background". I hope that answers your question.
Because the TWI is interrupt-based, the application software is free to carry on other operations during a TWI byte transfer.