The sentence that is correctly written without commas because it contains a restrictive clause is:
The pen that ran out of ink is mine.
In this sentence, the clause "that ran out of ink" is essential to identify which pen is being referred to, so no commas are needed.