Generally an organization should not be writing or submitting funding requests (grants or any other kind of funding request) to pay for any costs incurred prior to the grant or funding period. Institutional funders (government, foundations, etc.) will not pay for costs that are incurred prior to a grant agreement. They expect the request to be for costs of something an organization is planning to do, not something that is already completed.
In terms of grant writing fees, these should not be considered part of a grant budget. Grant writing is work for hire or fee for service. Furthermore, it is widely considered unethical practice for fund development professionals to offer services or perform work on the basis of being paid a percentage or fixed amount of the actual funds raised.
To read more about different types of funding, visit Fundraising.